<template>
    <div>
        <mt-swipe :auto="4000">
            <mt-swipe-item v-for="item in data" :key="item.id"><img :src="item.picUrl" :style="{height:height, width: width}" alt=""></mt-swipe-item>
        </mt-swipe>
    </div>
</template>

<script>
    export default {
        props:['height','width','data']
    }
</script>

<style lang="scss" scoped>
.mint-swipe {
    height: 200px;
    .mint-swipe-item {
        img{
            width: 100%;
            height: 100%;
            display: block;
            margin: 0 auto;
        }
    }
}
</style>